#pragma once
#include <termios.h>

#define MAXTOKEN 512
#define CIPHER_SIZE 1024

int aes256_encrypt(const unsigned char* plaintext, int plaintext_len,
                   unsigned char* ciphertext);
int aes256_decrypt(const unsigned char* ciphertext, int ciphertext_len,
                   unsigned char* plaintext);

void generate_salt(char* salt, int n);
void sha256_passwd(const char* salt, const char* passwd, char* hashcode);

int verify_jwt(void);
